Skip to content

Potential Fix for TS-4207#523

Merged
asfgit merged 1 commit intoapache:masterfrom
jacksontj:master
Mar 14, 2016
Merged

Potential Fix for TS-4207#523
asfgit merged 1 commit intoapache:masterfrom
jacksontj:master

Conversation

@jacksontj
Copy link
Contributor

std::map is creating an entry, and we are setting a subset of values. Since we were not clearing the memory that we got, we end up with some non-initialized structure fields-- meaning the HostDBInfo object we return is corrupt.

@zwoop
Copy link
Contributor

zwoop commented Mar 12, 2016

As per the IRC discussion, this seems unlikely to be our issue, since we don't enable the hosts files support on our boxes. Also, probably should use ink_zero() :).

@bgaff
Copy link
Member

bgaff commented Mar 12, 2016

I'm not sure this fixes TS4207 but this is a good patch regardless. +1 from me.

@zwoop
Copy link
Contributor

zwoop commented Mar 12, 2016

Yeah, +1 from me too, but file a new Jira for it since this is likely not related to TS-4207.

@jacksontj
Copy link
Contributor Author

Yea, once jira is up i'll file one and attach this to it. As for the ink_zero-- I'll add that to the TODO list of my hostdb cleanup. For now this is consistent with the rest of the HostDBInfo clearings.

jacksontj added a commit to jacksontj/trafficserver that referenced this pull request Mar 14, 2016
std::map is creating an entry, and we are setting a subset of values. Since we were not clearing the memory that we got, we end up with some non-initialized structure fields-- meaning the HostDBInfo object we return is corrupt.

Fixes apache#523
@jacksontj
Copy link
Contributor Author

Created new Jira, https://issues.apache.org/jira/browse/TS-4272. @zwoop since this is such a simple patch I assume we'll want to backport this? If so, which versions should I port back to?

std::map is creating an entry, and we are setting a subset of values. Since we were not clearing the memory that we got, we end up with some non-initialized structure fields-- meaning the HostDBInfo object we return is corrupt.

Fixes apache#523
@asfgit asfgit merged commit edf9ff1 into apache:master Mar 14, 2016
asfgit pushed a commit that referenced this pull request Apr 27, 2016
std::map is creating an entry, and we are setting a subset of values. Since we were not clearing the memory that we got, we end up with some non-initialized structure fields-- meaning the HostDBInfo object we return is corrupt.

Fixes #523

(cherry picked from commit edf9ff1)
@zwoop zwoop added this to the Old milestone Jan 8, 2019
masaori335 pushed a commit to masaori335/trafficserver that referenced this pull request Jul 24, 2023
Propagate variation to autest pipelines so that autest are run on the same variation as the build.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants